<?php
/**
 * 
 * PlugsAction.class.php (后台扩展模块)
 *
 * @package     XYCMS
 *
 * @author      Rakiy[Xux851@Gmail.com]
 *
 */
if(!defined("XYCMS")) exit("Access Denied");
class PlugsAction extends AdminbaseAction{
    public function _initialize(){
        //$this->dao = D('Config');
    }
    public function index(){

    }
    public function point(){
        $latlng = I('get.latlng','','trim');
        $name   = I('get.name','','safe_replace,trim');
        $latlng = explode('_' , $latlng);
        $point['lng'] = isset($latlng[0]) && !empty($latlng[0]) && $latlng[0] <= 180 ? floatval($latlng[0]) : '108.953617';  //经度
        $point['lat'] = isset($latlng[1]) && !empty($latlng[1]) && $latlng[1] <= 90  ? floatval($latlng[1]) : '34.264756';   //纬度
        $this->assign('point', $point);
        $this->assign('name',  $name);
        $this->display();
    }
}